<template>
  <div class="child">
    <h2>child---{{ msg }}</h2>
    <button @click="$emit('click', '子组件的数据')">setData</button>
  </div>
</template>
<script>
export default {
  // props: ['msg'],
  props: {
    msg: {
      type: String,
      default: '默认值'
    }
  },
  data() {
    return {}
  }
}
</script>
<style lang="scss" scoped></style>
